package util;

import field.objects.Ship;
import field.objects.enemies.Scout;

public class EnemyFactory {
    public static Ship getEnemy(Class<? extends Ship> ship, EnemyParameters parameters) {
        if(ship.equals(Scout.class)){
            if(parameters == null)
                return new Scout();
            else{
                return new Scout(parameters.getPosX(), parameters.getPosY(), parameters.getTranslateX(), parameters.getTranslateY());
            }
        }
        return null;
    }
}
